home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / dpkernel / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-04  |  2.8 KB  |  106 lines

  1. #ifndef DPKERNEL_PREFS_H
  2. #define DPKERNEL_PREFS_H 1
  3.  
  4. /*
  5. **  $VER: prefs.h V2.0
  6. **
  7. **  GMS Preferences
  8. **
  9. **  (C) Copyright 1996-1998 DreamWorld Productions.
  10. **      All Rights Reserved
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <dpkernel/dpkernel.h>
  15. #endif
  16.  
  17. /***************************************************************************
  18. ** Screen Preferences
  19. */
  20.  
  21. #define OCS 0
  22. #define ECS 1
  23. #define AGA 2
  24.  
  25. #define GB_NONE       0  /* Different graphics boards. */
  26. #define GB_PICCOLO    1
  27. #define GB_CYBERVIS64 2
  28. #define GB_SPECTRUM   3
  29. #define GB_PICASSO    4
  30. #define GB_RETINA     5
  31. #define GB_MERLIN     6
  32. #define GB_HARLEQUIN  7
  33. #define GB_OPALVISION 8
  34.  
  35. #define SCR_PAL     0    /* Type of mode promotion. */
  36. #define SCR_NTSC    1
  37. #define SCR_DBLPAL  2
  38. #define SCR_DBLNTSC 3
  39. #define SCR_VGA     4
  40.  
  41. #define TO_WINDOW   0    /* Screen switching method. */
  42. #define TO_SCREEN   1
  43.  
  44. #define SCRPREFS_V1      /* SCR1 */
  45. #define SCRPREFS_V2      /* SCR2 */
  46. #define SCRPREFS_V3      /* SCR3 */
  47.  
  48. struct ScreenPrefs {
  49.   LONG ID;             /* "SCR1" */
  50.   WORD ChipSet;        /* OCS/ECS/AGA */
  51.   WORD ModePromote;    /* None/NTSC/PAL/DBLNTSC/DBLPAL/VGA */ 
  52.   WORD GfxBoard;       /* Gfx board setting */
  53.   WORD TopOfScrX;      /* Top corner of screen, X */
  54.   WORD TopOfScrY;      /* Top corner of screen, Y */
  55.   WORD ScrSwitch;      /* Screen Switch to window or screen */
  56.   WORD ScrWidth;       /* The width of the visible screen */
  57.   WORD ScrHeight;      /* The height of the visible screen */
  58.   WORD Planes;         /* The amount of planes in the screen */
  59.   LONG Attrib;         /* Special Attributes */
  60.   WORD ScrMode;        /* Screen mode */
  61.   WORD ScrType;        /* ILBM/Planar/Chunky? */
  62.   BYTE *C2PFile;       /* C2P file */
  63.   LONG *Palette;       /* Pointer to 24 bit palette */
  64.   WORD OwnBlitter;     /* 0 = FALSE, 1 = TRUE */
  65. };
  66.  
  67. /***************************************************************************
  68. ** Master Preferences
  69. */
  70.  
  71. struct JoyKeys {
  72.   BYTE Left;
  73.   BYTE Right;
  74.   BYTE Up;
  75.   BYTE Down;
  76.   BYTE Fire1;
  77.   BYTE Fire2;
  78.   BYTE Fire3;
  79.   BYTE Fire4;
  80.   BYTE Fire5;
  81.   BYTE Fire6;
  82.   BYTE Fire7;
  83.   BYTE Fire8;
  84.   BYTE ZIn;
  85.   BYTE ZOut;
  86.   WORD QualMask;       /* Qualifier Mask */
  87. };
  88.  
  89. struct MasterPrefs {
  90.   LONG VERSION;        /* "GEN1" */
  91.   APTR empty;          /* */
  92.   WORD JoyType1;       /* Type of Joystick in port 1 */
  93.   WORD JoyType2;       /* Type of Joystick in port 2 */
  94.   WORD JoyType3;       /* Type of Joystick in port 3 */
  95.   WORD JoyType4;       /* Type of Joystick in port 4 */
  96.   WORD Language;       /* Language */
  97.   WORD UserPri;        /* User priority */
  98.   WORD Tracking;       /* Resource tracking on/off */
  99.   BYTE XPK[4];         /* XPK cruncher name */
  100.   WORD ButtonTime;     /* Micro-seconds for button time-out */
  101.   WORD MoveTime;       /* Micro-seconds for movement time-out */
  102.   struct JoyKeys Keys[4];
  103. };
  104.  
  105. #endif /* DPKERNEL_PREFS_H */
  106.